import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';


import { ProAccountSettingsComponent } from './account/settings/settings.component';
import { ProAccountSettingsBaseComponent } from './account/settings/base/base.component';
import { ProAccountSettingsThemeComponent } from './account/settings/theme/theme.component';

const routes: Routes = [
  {
    path: 'account',
    children: [
      {
        path: 'settings',
        component: ProAccountSettingsComponent,
        children: [
          { path: '', redirectTo: 'base', pathMatch: 'full' },
          {
            path: 'base',
            component: ProAccountSettingsBaseComponent,
            data: { titleI18n: '基本设置' },
          },
          {
            path: 'theme',
            component: ProAccountSettingsThemeComponent,
            data: { titleI18n: '主题设置' },
          }
        ],
      },
    ],
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class ProRoutingModule {}
